import { http } from "@/utils/http";

//获取菜单列表
export const getMenuList = (data?: object) => {
  return http.request("get", "/api-user/menus/findAllMenus", data);
};
// 新增菜单
export const saveMenu = (data?: object) => {
  return http.request("post", "/api-user/menus/saveMenus", { data });
};
// 删除菜单
export const delObj = (id: string) => {
  return http.request("delete", "/api-user/menus/delete/" + id);
};
// 修改菜单
export const updateMenu = (data?: object) => {
  return http.request("post", "/api-user/menus/updateMenus", { data });
};
